package com.zhc.dejingapi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhc
 * @since 2024-07-27
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("wm")
@ApiModel(value = "WmEntity对象", description = "")
public class WmEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("e_id")
    private Long eId;

    @ApiModelProperty("班次时间")
    @TableField("c_date")
    private LocalDate cDate;

    @ApiModelProperty("班次")
    @TableField("classes")
    private String classes;

    @TableField("wmId")
    private Integer wmId;

    @TableField("wmMsg")
    private String wmMsg;

    @TableField("wmTime")
    private LocalDateTime wmTime;

    @ApiModelProperty("报警结束时间")
    @TableField("wmEndTime")
    private LocalDateTime wmEndTime;

    @ApiModelProperty("报警时长")
    @TableField("alarmDuration")
    private String alarmDuration;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time",fill= FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time",fill= FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
